package com.shuihu.springcloud.common;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author shuihu
 * @create 2020-05-31 17:09
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class BaseResult<T> implements Serializable {
    private static final String SUCCESS = "success";
    private static final String ERROR = "error";


    private long code;
    private String msg;
    private BaseResult<T> data;

    public BaseResult(long code,String msg){
        this(code,msg,null);
    }

}
